package com.jiazhong.commons.bean;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Set;


@Data
@TableName("`order`")
public class Order implements Serializable {
    @TableId
    private String id;
    private String userId;
    private Integer totalCount;
    private Double totalAmount;
    private Integer status;
    @TableField(fill = FieldFill.INSERT)
    private String createTime;
    @TableField(fill = FieldFill.UPDATE)
    private String updateTime;
    private Integer isDeleted;
    @TableField(exist = false)
    private Set<OrderItem> orderItems;
}
